<?php

declare(strict_types=1);
/*
 * This file is part of Leonsw.
 *
 * @link     https://leonsw.com
 * @document https://docs.leonsw.com
 * @contact  leonsw.com@gmail.com
 * @license  https://leonsw.com/LICENSE
 */
namespace App\Resource\Lottery2\Rank;


use Illuminate\Http\Resources\Json\JsonResource;

class LuckyResource extends JsonResource
{
    public function toArray($request)
    {
        return [
            'rank' => Resource::collection($this->rank),
            'self' => $this->self,
        ];
    }
}
